import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { CommonModule } from "@angular/common";
import { FormsModule } from "@angular/forms";
import { ToasterModule } from "angular2-toaster";

import { UniversesComponent } from "./universes/universes.component";
import { ClaimsComponent } from "./claims/claims.component";
import { PercentileComponent } from "./percentile/percentile.component";
import { FileUploadModule } from "ng2-file-upload";

const routes: Routes = [    
    {
        path: 'universes',
        component: UniversesComponent
    },
    {
        path: 'claims',
        component: ClaimsComponent
    },
    {
        path: 'percentile',
        component: PercentileComponent
    }
];

@NgModule({
    imports: [
        CommonModule,
        FormsModule,        
        FileUploadModule,
        RouterModule.forChild(routes),
        ToasterModule.forRoot()
    ],
    declarations: [
        UniversesComponent,
        ClaimsComponent,
        PercentileComponent        
    ]
})
export class ToolsModule { }